{template newheader}
<div id="wrapper">
	<div class="main">
	<!--{if $TS_USER[user][userid] == $strUser[userid]}-->
	<div id="publish_me" class="pub_box">
    <div class="pub_area r5">
        <div class="pub_edit r5">
            <div class="zone_select_album clearfix" id="zone_select_album">
				<div class="chose_album">
					
				</div>
				
			</div>
			<form action="{SITE_URL}index.php/go/url/ts-addpro" method="post" target="_top">
            <input name="purl"  class="pub_txt fl rl5" style="height:24px; line-height:24px; color: #CCCCCC" onfocus="this.value==this.defaultValue?this.value='':null;" onblur="this.value==''?this.value='粘贴宝贝地址（暂时只支持淘宝）':null;" value="粘贴宝贝地址（暂时只支持淘宝）" ><input id="pub_submit" type="submit" class="pub_btn fl rr5" style="height:30px" value="分享">
			</form>
                  
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="pro"></div>
<!--{/if}-->	
		<h1 class="u_name">{$strUser['username']}的话题</h1>
		<ul class="u_tab">
			<li><a href="{SITE_URL}{tsurl('user','space',array(userid=>$strUser[userid]))}">分享<em>({$annmu})</em></a></li>
			<li><a href="{SITE_URL}{tsurl('user','collect',array(userid=>$strUser[userid]))}">收藏({$collects_num})</a></li>
			<li class="current"><a href="{SITE_URL}{tsurl('user','talk',array(userid=>$strUser[userid]))}">话题</a></li>
		</ul>
		<div class="user_box">
	<div class="white co5">

			<ul class="topic_l">
<!--{if arrTopics}-->
{loop $arrTopics $key $item}
					<li>
						<a href="{SITE_URL}{tsurl('user','space',array(userid=>$item[user][userid]))}" class="avatar">
							<img src="{$item[user][face]}" alt="{$item[user][username]}" />
						</a>
						<p class="title"><span class="fr r_num">{$item[count_comment]}</span>
							<a href="{SITE_URL}{tsurl('talk','talk',array('talkid'=>$item[talkid]))}">{$item[title]}</a>
						</p>
						<p class="p_date">发布于{php echo date('Y-m-d H:i',$item[addtime])}&nbsp;&nbsp;
								最后回复于{php echo date('Y-m-d H:i',$item[uptime])}

						</p>

					</li>
					{/loop}
					<!--{/if}-->
			</ul>

			

			<div class="pagenav">
			{$pageUrl}
			</div>

		</div>
		
		</div>
	</div>
	<div class="sidebar">
	
		<div class="white">
			<p class="ava_big"><img src="{$strUser[bigface]}" /></p>
			<!--{if $strUser[userid] <> $TS_USER[user][userid]}-->
			<!--{if $strUser[isfollow]}-->
				<p class="add" style=""><span class="btn_added">已关注<a <a href="javascript:void('0');" onclick="user_nofollow('{$TS_USER[user][userid]}','{$strUser[userid]}');" id="followed">取消</a></span></p>
				<p class="add" id="unfollow" style="display:none"><a class="btn_add" href="/login">关注</a></p>
			<!--{else}-->
							<p class="add" style="display:none"><span class="btn_added">已关注<a href="/login" id="followed">取消</a></span></p>
				<p class="add" id="unfollow" style=""><a class="btn_add"  href="javascript:void(0);" onclick="user_follow('{$TS_USER[user][userid]}','{$strUser[userid]}');">关注</a></p>
				<!--{/if}-->
					<!--{/if}-->
			<ul class="u_data">
				<li class="city">火星</li>
				
				<li class="join_date">{php echo date('Y-m-d',$strUser[addtime])} {$TS_HL[app][1067]}</li>
			</ul>
			<p class="signature"><!--{if $strUser[signed]}-->{$TS_HL[app][1078]}{$strUser[signed]}<!--{/if}--></p>
		</div>
		<div class="white">
			<h2>{$strUser[username]}关注的人</h2>
			<ul class="peo_list">
			
					<!--{loop $arrFollowUser $key $item}-->
				<li><a href="{SITE_URL}{tsurl('user','space',array(userid=>$item[userid]))}" title="{$item[username]}"><img src="{$item[face]}" alt="{$item[username]}" /></a></li>
			<!--{/loop}-->
			
			</ul>
			<p class="see_all"><a href="{SITE_URL}{tsurl('user','follow',array(userid=>$strUser[userid]))}">全部{$strUser[count_follow]}</a></p>
		</div>
		<div class="white">
			<h2>{$strUser[username]}的粉丝</h2>
			<ul class="peo_list">
				<!--{loop $arrFollowedUser $key $item}-->
				<li><a href="{SITE_URL}{tsurl('user','space',array(userid=>$item[userid]))}" title="{$item[username]}"><img src="{$item[face]}" alt="{$item[username]}" /></a></li>
			<!--{/loop}-->
			</ul>
			<p class="see_all"><a href="{SITE_URL}{tsurl('user','followed',array(userid=>$strUser[userid]))}">全部{$followedUsersnum}</a></p>
		</div>
	</div>
	<div class="clear"></div>
	<div class="loadbar" id="ajax"><a  class="ajax loading">更多</a></div>
	<div class="loadbar" id="more"><a class="ajax">更多</a></div>
</div>
{template footer}
